﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="new_add.aspx.cs" Inherits="admin_UKNOW_news_new_add" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>新闻信息 </title>
    <link href="../../css/default.css" rel="stylesheet" type="text/css" />

    <script src="../../js/jUtility.js" type="text/javascript"></script>

    <script type="text/javascript" src="../../common/calendar.js"></script>

    <script type="text/javascript" src="../../../fckeditor/fckeditor.js"></script>

    <script type="text/javascript" src="../../js/jquery-1.4.2.min.js"></script>

    <script type="text/javascript">
        window.onload = function () {
            if (document.getElementById("content")) {
                var fck = new FCKeditor('content');
                fck.BasePath = "../../../fckeditor/";
                fck.Width = "99%";
                fck.Height = "600px";
                fck.ReplaceTextarea();
            }

            //initTextarea("concact");
        }
//        function initTextarea(id) {
//            if (document.getElementById(id) && document.getElementById(id).style.display != 'none') {
//                var fck2 = new FCKeditor(id);
//                fck2.BasePath = "../../../fckeditor/";

//                fck2.Width = "99%";
//                fck2.Height = "200px"
//                fck2.ReplaceTextarea();
//            }
//        }
    </script>
    <script type="text/javascript">
        function closeWindow() {
            if (confirm("您确定关闭该对话框吗?"))
                window.self.close();
        }
    </script>
</head>
<body  style="overflow-y:scroll">

    <table width="100%" height="500" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
        <tr>
            <td height="414" align="left" valign="top" class="rightbg">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td height="2" bgcolor="#A49B81">
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25" background="../../images/position_bg.gif" bgcolor="#EEF6FE" class="subnav"
                                        style="background-repeat: repeat-y; background-position: left; padding-left: 6px;
                                        padding-top: 3px;">
                                        <asp:Label ID="headers" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td height="1" bgcolor="#B0C9E8">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="16">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="top" style="padding-left: 10px;">
                            <form id="form1" method="post" runat="server">
                            <table width="95%" height="728" border="1" align="center" cellpadding="0" cellspacing="0"
                                bordercolorlight="#2583BC" bordercolordark="#ffffff">
                                <tr>
                                    <td width="100%" height="641" valign="top">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <th align="left" width="98%">
                                                    <asp:Label ID="infoname" runat="server"></asp:Label>
                                                </th>
                                                <th width="1%">
                                                    <asp:Button Text="提交" OnClientClick="" OnClick="Sub_click" ID="Button2"  runat="server"/>
                                                </th>
                                                <th width="1%">
                                                    <input type=button value="关闭" onclick="javascript:closeWindow();" />
                                                </th> 
                                            </tr>
                                        </table>
                                        <br>
                                        <table width="100%" border="0">
                                            <tr>
                                                <td width="7%" align="right">
                                                    <font color="#FF0000">* </font>新闻标题：
                                                </td>
                                                <td width="75%">
                                                    <asp:TextBox ID="title" runat="server" MaxLength="100" size="50" width=50%/> 
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="7%" align="right">
                                                    <font color="#FF0000"></font>新闻简介：
                                                </td>
                                                <td width="75%">
                                                    <asp:TextBox ID="shortDescript_txt" TextMode="MultiLine" Rows="4" Columns="50" runat="server"
                                                        Height="59px" Width="50%"></asp:TextBox>
                                                </td>
                                            </tr >
                                            <tr>
                                                <td width="7%" align="right">
                                                    <font color="#FF0000"></font>手机内容：
                                                </td>
                                                <td width="75%">
                                                    <asp:TextBox ID="txt_phone" TextMode="MultiLine" Rows="6" Columns="50" runat="server"
                                                        Height="59px" Width="50%"></asp:TextBox>
                                                </td>
                                            </tr>    
                                                                                   
                                            <tr>
                                                <td align="right">
                                                    <font color="#FF0000">*</font>新闻内容模版：
                                                </td>
                                                <td width="75%">
                                                    <asp:DropDownList runat="server" ID="templateId" Width="50%">
                                                        <asp:ListItem Text="--请选择--" Value="0" />
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    <font color="#FF0000">&nbsp; </font>列表图：
                                                </td>
                                                <td align="left">
                                                    <asp:FileUpload ID="listPicFile" runat="server" Height="27px" Width="547px" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    热点新闻：
                                                </td>
                                                <td >
                                                    <asp:RadioButtonList runat="server" ID="hot_new" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                                        <asp:ListItem Text="否" Value="0" Selected="True" />
                                                        <asp:ListItem Text="是" Value="1" />
                                                    </asp:RadioButtonList>
                                                </td>
                                            </tr> 
                                            <tr>
                                                <td align="right">
                                                    发布状态：
                                                </td>
                                                <td>
                                                    <asp:RadioButtonList runat="server" ID="pubState" RepeatDirection="Horizontal"
                                                        RepeatLayout="Flow">
                                                        <asp:ListItem Text="否" Value="0" Selected="True" />
                                                        <asp:ListItem Text="是" Value="1" />
                                                    </asp:RadioButtonList>
                                                </td>
                                            </tr>
                                             <tr>
                                                <td align="right">
                                                    排序：
                                                </td>
                                                <td>
                                                    <asp:TextBox runat="server" ID="txt_order"></asp:TextBox>
                                                    <asp:HiddenField runat="server" ID="hf_createtime"/>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    发布时间：
                                                </td>
                                                <td>
                                                    <asp:TextBox runat="server" ID="txt_publishtime"></asp:TextBox>
                                                </td>
                                            </tr>
                                        </table>
                                        <table width="100%" border="0" id="con" runat="server" visible="true">
                                            <tr>
                                                <td align="right" width="100px">
                                                    内容：
                                                </td>
                                                <td align="left">
                                                    <asp:TextBox ID="content" Height="600px" TextMode="MultiLine" runat="server" 
                                                        style="margin-left: 0px" />  <%--3Rows="7" Columns="5" --%>
                                                </td>
                                            </tr>
                                            
                                        </table>
                                        
                                        <%--<table width="100%" border="0">
                                            <tr>
                                                <td height="54" colspan="3" align="center">--%>
                                                    <%--<asp:Button Text="提交" OnClientClick="" OnClick="Sub_click" ID="Button1"  runat="server"/>--%>
                                                        <%--
                                                </td>
                                            </tr>
                                       --%> <%--</table>--%>
                                    </td>
                                </tr>
                            </table>
                            </form>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>


    <iframe id="wait2" name="wait2" style="display: none" width="100%" height="100%"
        src="../../images/wait.gif" frameborder='0' align='middle' bgcolor='#FFFFFF'>
    </iframe>


</body>
</html>
